﻿@model DateTime?

@Html.TextBox("", Model.HasValue ? String.Format("{0:dd/MM/yyyy}", Model): string.Empty, new { @class = "dp" })

<script  type="text/javascript">
    $(document).ready(function () {
        $(".dp").datepicker({  
             changeMonth: true,  
             changeYear: true,  
             dateFormat: 'dd/mm/yy'}); 
    });  
  </script>  
